
import httpRequest from "../index"
/**
 * @description: 查询博客列表
 * @return {*}
 */

export const getBlog = (params:any) => {
  return httpRequest.post('/blog/list',params)
}
/**
 * @description: 查询博客详情
 * @return {*}
 */
export const getBlogDetail = (params:any) => {
  return httpRequest.post('/blog/detail',params)
}
/**
 * @description: 查询博客评论
 * @return {*}
 */
export const getBlogComment = (params:any) => {
  return httpRequest.post('/blogcomment/list',params)
}
/**
 * @description: 回复及评论
 * @return {*}
 */
export const addBlogComment = (params:any) => {
  return httpRequest.post('/blogcomment/add',params)
}
/**
 * @description: 查询精选博客
 * @return {*}
 */
export const getBlogSelect = (params:any) => {
  return httpRequest.post('/blog/select',params)
}
/**
 * @description: 博客浏览记录
 * @return {*}
 */

export const viewBlog = (params:any) => {
  return httpRequest.post('/blog/view',params)
}
/**
 * @description: 博客点赞
 * @return {*}
 */

export const portLike = (params:any) => {
  return httpRequest.post('/blog/like',params)
}